﻿@model Entidades.Seguridad.Grupo

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<link href="../../Content/themes/bootstrap.extra.table.css" rel="stylesheet" />
<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Grupo</legend>

        <div class="clearfix">
            @Html.LabelFor(model => model.IdGrupo)
        
        <div class="input">
            @Html.TextBoxFor(model => model.IdGrupo, new { disabled = "disabled" })
            @Html.ValidationMessageFor(model => model.IdGrupo)
        </div>
        </div>

        <div class="clearfix">
            @Html.LabelFor(model => model.Descripcion)
        
        <div class="input">
            @Html.EditorFor(model => model.Descripcion)
            @Html.ValidationMessageFor(model => model.Descripcion)
        </div>
        </div>

        <div class="clearfix">
            @Html.LabelFor(model => model.Estado)
        
        <div class="input">
            @Html.EditorFor(model => model.Estado)
            @Html.ValidationMessageFor(model => model.Estado)
        </div>
        </div>

        <div class="actions">
            <input type="submit" class="btn primary" value="Guardar" />
            @Html.ActionLink("Regresar a Gestion", "Index", null, new { @class = "btn"})
        </div>
        

    </fieldset>
}
